package cn.zhong5.changzhoulocaltax.common.utils;

import android.widget.Toast;

import cn.zhong5.changzhoulocaltax.CZLocalTaxApp;
import es.dmoral.toasty.Toasty;

/**
 * Created by Sunman on 2017-11-22 0022.
 */

public class ToastUtils
{
    public static void showError(String msg) {
        Toasty.error(CZLocalTaxApp.getContext(), msg, Toast.LENGTH_SHORT, true).show();
    }

    public static void showSuccess(String msg) {
        Toasty.success(CZLocalTaxApp.getContext(), msg, Toast.LENGTH_SHORT, true).show();
    }

    public static void showWarning(String msg) {
        Toasty.warning(CZLocalTaxApp.getContext(), msg, Toast.LENGTH_SHORT, true).show();
    }
}
